﻿namespace LiteByte.Converters {

    /// <summary> LiteByte序列化器模版类 </summary>
    public interface ILBSerializer<T> {

        static abstract byte[] Serialize(T entity);
        static abstract T Deserialize(byte[] bytes);

        static abstract void Write(LBWriter writer, T entity);
        static abstract T Read(LBReader reader);

    }

}
